package polimi.sc.expoquest.storage.model;

/**
 * This class represents a comment done to a public gossip of a picture in the application
 * @author Monica Lozano
 */
public class GossipComment {
	//----------------
	//ATTRIBUTES
	//----------------
	/**
	 * ID in the database, this id is related to the _id column
	 * of the table, and this is automatically autoincremented
	 */
	private int id;
	
	/**
	 * The comment
	 */
	private String comment;
	/**
	 * The user that did the comment
	 */
	private User user;
	
	/**
	 * The id of the gossip
	 */
	private Gossip gossip;
	
	//----------------
	//CONSTRUCTOR
	//----------------
	public GossipComment(){}
	
	/**
	 * 
	 * @param id
	 * @param comment
	 * @param user
	 */
	public GossipComment(int id, String comment,User user)
	{
		this.id = id;
		this.comment= comment;
		this.user = user;
	}
	//-------------------
	//GETTERS AND SETTERS
	//-------------------

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the user
	 */
	public User getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(User user) {
		this.user = user;
	}
	
	/**
	 * @return the gossip
	 */
	public Gossip getGossip() {
		return gossip;
	}

	/**
	 * @param gossip the gossip to set
	 */
	public void setGossip(Gossip gossip) {
		this.gossip = gossip;
	}

	
}
